<html>
<head><meta charset="utf-8"><title>rustc-perf error · t-compiler/performance · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/247081-t-compiler/performance/index.html">t-compiler/performance</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/247081-t-compiler/performance/topic/rustc-perf.20error.html">rustc-perf error</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="207745551"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/247081-t-compiler/performance/topic/rustc-perf%20error/near/207745551" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jonas Schievink  [he/him] <a href="https://rust-lang.github.io/zulip_archive/stream/247081-t-compiler/performance/topic/rustc-perf.20error.html#207745551">(Aug 22 2020 at 22:52)</a>:</h4>
<p>I still can't manage to properly use rustc-perf locally. This time I got this obscure error when trying to look at per-query results when comparing a bench run with itself:</p>
<blockquote>
<p>Failed to process query; fix one of these errors: ProcessStatistic does not have <code>cpu-clock</code> as a valid value; or query must have QueryLabel selector</p>
</blockquote>



<a name="207745561"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/247081-t-compiler/performance/topic/rustc-perf%20error/near/207745561" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jonas Schievink  [he/him] <a href="https://rust-lang.github.io/zulip_archive/stream/247081-t-compiler/performance/topic/rustc-perf.20error.html#207745561">(Aug 22 2020 at 22:53)</a>:</h4>
<p>How can I override the "already benchmarked" error?</p>



<a name="207745822"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/247081-t-compiler/performance/topic/rustc-perf%20error/near/207745822" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> eddyb <a href="https://rust-lang.github.io/zulip_archive/stream/247081-t-compiler/performance/topic/rustc-perf.20error.html#207745822">(Aug 22 2020 at 23:02)</a>:</h4>
<p><span class="user-mention" data-user-id="211727">@Jonas Schievink</span> presumably you need to delete the previous result? or, wait, it's a database now isn't it. hmm I have no idea then</p>



<a name="207746479"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/247081-t-compiler/performance/topic/rustc-perf%20error/near/207746479" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/247081-t-compiler/performance/topic/rustc-perf.20error.html#207746479">(Aug 22 2020 at 23:22)</a>:</h4>
<p>I normally use a different id for the collection</p>



<a name="207746483"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/247081-t-compiler/performance/topic/rustc-perf%20error/near/207746483" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/247081-t-compiler/performance/topic/rustc-perf.20error.html#207746483">(Aug 22 2020 at 23:22)</a>:</h4>
<p>So then it thinks the data doesn't exist yet and starts recording</p>



<a name="207750167"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/247081-t-compiler/performance/topic/rustc-perf%20error/near/207750167" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/247081-t-compiler/performance/topic/rustc-perf.20error.html#207750167">(Aug 23 2020 at 01:28)</a>:</h4>
<p>You can delete from the artifact table with sqlite without too much effort</p>



<a name="207750170"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/247081-t-compiler/performance/topic/rustc-perf%20error/near/207750170" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/247081-t-compiler/performance/topic/rustc-perf.20error.html#207750170">(Aug 23 2020 at 01:28)</a>:</h4>
<p>I should document the commands to do so</p>



<a name="207750179"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/247081-t-compiler/performance/topic/rustc-perf%20error/near/207750179" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/247081-t-compiler/performance/topic/rustc-perf.20error.html#207750179">(Aug 23 2020 at 01:28)</a>:</h4>
<p>If someone could file an issue bugging me to do so that would be great</p>



<a name="207750189"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/247081-t-compiler/performance/topic/rustc-perf%20error/near/207750189" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/247081-t-compiler/performance/topic/rustc-perf.20error.html#207750189">(Aug 23 2020 at 01:29)</a>:</h4>
<p><span class="user-mention" data-user-id="211727">@Jonas Schievink</span> did you pass --self-profile when collecting?</p>



<a name="207750291"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/247081-t-compiler/performance/topic/rustc-perf%20error/near/207750291" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jonas Schievink  [he/him] <a href="https://rust-lang.github.io/zulip_archive/stream/247081-t-compiler/performance/topic/rustc-perf.20error.html#207750291">(Aug 23 2020 at 01:32)</a>:</h4>
<p>yeah</p>



<a name="207769182"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/247081-t-compiler/performance/topic/rustc-perf%20error/near/207769182" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/247081-t-compiler/performance/topic/rustc-perf.20error.html#207769182">(Aug 23 2020 at 11:44)</a>:</h4>
<p>if you want to upload the sqlite database somewhere that'd be helpful, I can play with it then</p>



<a name="207967896"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/247081-t-compiler/performance/topic/rustc-perf%20error/near/207967896" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/247081-t-compiler/performance/topic/rustc-perf.20error.html#207967896">(Aug 25 2020 at 14:14)</a>:</h4>
<p><span class="user-mention" data-user-id="211727">@Jonas Schievink</span> do you still have the sqlite database around by chance? It'd be great to try and work out a fix for whatever bug you're running into</p>



<a name="207968010"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/247081-t-compiler/performance/topic/rustc-perf%20error/near/207968010" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jonas Schievink  [he/him] <a href="https://rust-lang.github.io/zulip_archive/stream/247081-t-compiler/performance/topic/rustc-perf.20error.html#207968010">(Aug 25 2020 at 14:15)</a>:</h4>
<p>I <em>think</em> what might have happened is that I accidentally created 2 databases, because one of the commands has a default while the other did not</p>



<a name="207968102"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/247081-t-compiler/performance/topic/rustc-perf%20error/near/207968102" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jonas Schievink  [he/him] <a href="https://rust-lang.github.io/zulip_archive/stream/247081-t-compiler/performance/topic/rustc-perf.20error.html#207968102">(Aug 25 2020 at 14:16)</a>:</h4>
<p>That at least explains the missing statistic</p>



<a name="207968160"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/247081-t-compiler/performance/topic/rustc-perf%20error/near/207968160" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jonas Schievink  [he/him] <a href="https://rust-lang.github.io/zulip_archive/stream/247081-t-compiler/performance/topic/rustc-perf.20error.html#207968160">(Aug 25 2020 at 14:17)</a>:</h4>
<p>But having an <code>--overwrite</code> switch for the collector would be nice too, in case I benchmark the wrong thing</p>



<a name="207968258"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/247081-t-compiler/performance/topic/rustc-perf%20error/near/207968258" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/247081-t-compiler/performance/topic/rustc-perf.20error.html#207968258">(Aug 25 2020 at 14:18)</a>:</h4>
<p>yeah I'm working on that switch now</p>



<a name="207968310"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/247081-t-compiler/performance/topic/rustc-perf%20error/near/207968310" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/247081-t-compiler/performance/topic/rustc-perf.20error.html#207968310">(Aug 25 2020 at 14:18)</a>:</h4>
<p>hm, we should make sure defaults coincide too</p>



<a name="207968723"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/247081-t-compiler/performance/topic/rustc-perf%20error/near/207968723" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/247081-t-compiler/performance/topic/rustc-perf.20error.html#207968723">(Aug 25 2020 at 14:21)</a>:</h4>
<p><span class="user-mention" data-user-id="211727">@Jonas Schievink</span> fwiw if you want to schedule or whatever some time to sync up and get things working for you (or try to anyway) I'd definitely be down for that</p>



<a name="207969336"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/247081-t-compiler/performance/topic/rustc-perf%20error/near/207969336" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jonas Schievink  [he/him] <a href="https://rust-lang.github.io/zulip_archive/stream/247081-t-compiler/performance/topic/rustc-perf.20error.html#207969336">(Aug 25 2020 at 14:25)</a>:</h4>
<p>Thanks, I think I can get it working now. I'll let you know if I run into any more issues.</p>



<a name="207970279"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/247081-t-compiler/performance/topic/rustc-perf%20error/near/207970279" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/247081-t-compiler/performance/topic/rustc-perf.20error.html#207970279">(Aug 25 2020 at 14:32)</a>:</h4>
<p>Actually, I've decided to just always <code>--overwrite</code>. I'm not aware of all that many use cases <em>not</em> to do that.</p>



<a name="207970309"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/247081-t-compiler/performance/topic/rustc-perf%20error/near/207970309" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/247081-t-compiler/performance/topic/rustc-perf.20error.html#207970309">(Aug 25 2020 at 14:32)</a>:</h4>
<p>Adding an --append wouldn't be too hard though if we ever wanted to.</p>



<a name="207972544"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/247081-t-compiler/performance/topic/rustc-perf%20error/near/207972544" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jonas Schievink  [he/him] <a href="https://rust-lang.github.io/zulip_archive/stream/247081-t-compiler/performance/topic/rustc-perf.20error.html#207972544">(Aug 25 2020 at 14:49)</a>:</h4>
<p>I'll probably overwrite the run I meant to compare against if it is done by default</p>



<a name="207972780"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/247081-t-compiler/performance/topic/rustc-perf%20error/near/207972780" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/247081-t-compiler/performance/topic/rustc-perf.20error.html#207972780">(Aug 25 2020 at 14:51)</a>:</h4>
<p>hm</p>



<a name="207972808"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/247081-t-compiler/performance/topic/rustc-perf%20error/near/207972808" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/247081-t-compiler/performance/topic/rustc-perf.20error.html#207972808">(Aug 25 2020 at 14:51)</a>:</h4>
<p>Interesting point.</p>



<a name="207972824"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/247081-t-compiler/performance/topic/rustc-perf%20error/near/207972824" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/247081-t-compiler/performance/topic/rustc-perf.20error.html#207972824">(Aug 25 2020 at 14:51)</a>:</h4>
<p>I guess we could <em>ask</em></p>



<a name="207972893"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/247081-t-compiler/performance/topic/rustc-perf%20error/near/207972893" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/247081-t-compiler/performance/topic/rustc-perf.20error.html#207972893">(Aug 25 2020 at 14:52)</a>:</h4>
<p>I feel like forcing to rerun with --overwrite or whatever will just be additional overhead</p>



<a name="207972974"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/247081-t-compiler/performance/topic/rustc-perf%20error/near/207972974" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/247081-t-compiler/performance/topic/rustc-perf.20error.html#207972974">(Aug 25 2020 at 14:52)</a>:</h4>
<p>I guess another option is to by default write into something like <code>name-you-gave.1</code> and provide some renaming facility...</p>



<a name="207976241"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/247081-t-compiler/performance/topic/rustc-perf%20error/near/207976241" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/247081-t-compiler/performance/topic/rustc-perf.20error.html#207976241">(Aug 25 2020 at 15:14)</a>:</h4>
<p>FWIW I'd be fine with rerunning with <code>--overwrite</code></p>



<a name="207976250"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/247081-t-compiler/performance/topic/rustc-perf%20error/near/207976250" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/247081-t-compiler/performance/topic/rustc-perf.20error.html#207976250">(Aug 25 2020 at 15:15)</a>:</h4>
<p>I think silently losing data is not great</p>



<a name="207977049"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/247081-t-compiler/performance/topic/rustc-perf%20error/near/207977049" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/247081-t-compiler/performance/topic/rustc-perf.20error.html#207977049">(Aug 25 2020 at 15:21)</a>:</h4>
<p>I'm trying to decide between --overwrite or a prompt</p>



<a name="207977058"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/247081-t-compiler/performance/topic/rustc-perf%20error/near/207977058" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/247081-t-compiler/performance/topic/rustc-perf.20error.html#207977058">(Aug 25 2020 at 15:21)</a>:</h4>
<p>probably overwrite is much simpler</p>



<a name="207977095"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/247081-t-compiler/performance/topic/rustc-perf%20error/near/207977095" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/247081-t-compiler/performance/topic/rustc-perf.20error.html#207977095">(Aug 25 2020 at 15:21)</a>:</h4>
<p>otoh, it seems just as prone to failure in some sense, because I feel like I would end up <em>always</em> having it on the command line or in ctrl+r</p>



<a name="207977754"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/247081-t-compiler/performance/topic/rustc-perf%20error/near/207977754" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/247081-t-compiler/performance/topic/rustc-perf.20error.html#207977754">(Aug 25 2020 at 15:26)</a>:</h4>
<p>yeah that's true</p>



<a name="207977831"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/247081-t-compiler/performance/topic/rustc-perf%20error/near/207977831" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/247081-t-compiler/performance/topic/rustc-perf.20error.html#207977831">(Aug 25 2020 at 15:26)</a>:</h4>
<p>I think the renaming scheme is probably the best bet, since it's basically guaranteed to mostly work</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>